tools/ocaml/xenstored: Synchronise defaults with oxenstore.conf.in
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:01 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 13:05:44 +0000 (13:05 +0000)
commit84734955d4bf629ba459a74773afcde50a52236f
tree2c92b61312cb1eb7bba659acdf2b7b0acbd1ddd3
parent9c484bef83496b683b0087e3bd2a560da4aa37af
tools/ocaml/xenstored: Synchronise defaults with oxenstore.conf.in

We currently have 2 different set of defaults in upstream Xen git tree:
* defined in the source code, only used if there is no config file
* defined in the oxenstored.conf.in upstream Xen

An oxenstored.conf file is not mandatory, and if missing, maxrequests in
particular has an unsafe default.

Resync the defaults from oxenstored.conf.in into the source code.

This is part of XSA-326 / CVE-2022-42316.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/quota.ml